package com.naughty.userlogin02.dao;

import com.naughty.userlogin02.bean.Teacher;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface TeacherDao {
    public int getTeacherByMassage(@Param("username") String username, @Param("password") String password);
    public List<Teacher> getAllTeacher(@Param("tname") String tname, @Param("pageStart") int pageStart, @Param("pageSize") int pageSize);
    public int getTeacherCounts(@Param("tname") String tname);
    public int addTeacher(Teacher teacher);
    public int deleteTeacher(String tid);
    public int editTeacher(Teacher teacher);
}
